package pl.PawelAndAlicja.badugiproject.main.Players;

public class FactoryPlayer {

    public Player createSelectedPlayer(String type) {
        Player player = null;

        if (type.equals("Human")) {
            player = new HumanPlayer();
        } else if (type.equals("Casino")) {
            player = new CasinoPlayer();
        } else if (type.equals("Bot")) {
            player = new BotPlayer();
        }
        return player;
    }

}
